package com.cskaoyan.wordmemorize.controller.app;


import com.cskaoyan.wordmemorize.common.result.Result;
import com.cskaoyan.wordmemorize.task.UserMessageRemindTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("task")
public class TaskController {

    @Autowired
    UserMessageRemindTask userMessageRemindTask;

    @GetMapping("")
    public Result executeTask(){
        userMessageRemindTask.initialize();
        return Result.ok();
    }
}
